FROM openjdk:8-jre-slim-buster
RUN echo "deb https://mirrors.bfsu.edu.cn/debian/ buster main contrib non-free \n\
        deb https://mirrors.bfsu.edu.cn/debian/ buster-updates main contrib non-free \n\
        deb https://mirrors.bfsu.edu.cn/debian/ buster-backports main contrib non-free \n\
        deb https://mirrors.bfsu.edu.cn/debian-security buster/updates main contrib non-free" \
        >/etc/apt/sources.list && apt-get update && apt-get install -y procps
ADD *.tar.gz /usr/local
WORKDIR /usr/local/mycat
EXPOSE 8066
CMD ["/usr/local/mycat/bin/mycat","console"]